package com.topisv.tms.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name = "edi_goods_sku")
public class EdiGoodsSku extends IdEntity{
	
	
	/**
	 * 序列号
	 */
	private static final long serialVersionUID = -4202381574669027716L;
	
	private String  bar;//varchar(200) DEFAULT NULL COMMENT '来源订单号 (目前没用)',
	private String  des;// varchar(100) DEFAULT NULL COMMENT 'SKU描述，目前ERP将商品规格全部存在这里。',
	private String  unt;//varchar(50) DEFAULT NULL COMMENT '重量',
	private String col;//varchar(50) DEFAULT NULL COMMENT 'SKU 颜色',
	private String  siz;//varchar(50) DEFAULT NULL COMMENT 'SKU 大小',
	private String  len;//varchar(50) DEFAULT NULL COMMENT '长度',
	private String  wid;//varchar(50) DEFAULT NULL COMMENT '宽度',
	private String  hei;//varchar(50) DEFAULT NULL COMMENT '高度',
	private String  vol;//varchar(50) DEFAULT NULL COMMENT '体积',
	private String  nwt;//varchar(50) DEFAULT NULL COMMENT '毛重',
	private String  gwt;//varchar(50) DEFAULT NULL COMMENT '净重',
	private String   mem;//varchar(50) DEFAULT NULL COMMENT '皮重',
	private String  sku;//varchar(64) NOT NULL COMMENT '商家sku 编码',
	private String storeCode;// 库位编码
	private String storeId;// 仓库Id
	private String storeType;//库位类型
	private String customerCode;//客户编码
	private String tbSkuid ;//bigint(20) DEFAULT NULL COMMENT '备用，淘宝SKU ID',
	private String spec;//规格代码
	private String skuName;//商品名称
	private Integer weight; //发货重量
	private Integer weightPkg; //单品发货,包装重量
	private String skuProps;// varchar(500) DEFAULT NULL COMMENT 'SKU其他属性（备用）',
	private String sellFlg;//1正常商品0赠品
	private String unit;//单位
	private String weightPop;//泡重
	private String isShelfLifeMgmt;//是否需要保质期管理，1/0（默认为0） 
	private Integer shelfLife;//保质期（小时）
	private Integer safetyStock;//安全库存
	private Integer rejectLifecycle;//保质期禁收天数
	private Integer lockupLifecycle;//保质期禁售天数
	private Integer adventLifecycle;//保质期临期预警天数
	private String isBatchMgmt;//是否需要批次管理，1/0（默认为0） 
	private String isFragile;//是否易碎品，1/0，（默认为0）
	private String isHazardous;//是否危险品，1/0，（默认为0）
	private Date createTime;//创建时间
	private Date updateTime;//更新时间
	private String isValid;//是否有效1/0（默认为1）
	private String itemType;//商品类型(ZC=正常商品=NORMAL, FX=分销商品=DISTRIBUTION, ZH=组合商品=COMBINE, ZP=赠品=ZENGPIN, BC=包材, HC=耗材, FL=辅料, XN=虚拟品, FS=附属品, CC=残次品, OTHER=其它=QITA)
	/**
	 * 海关编码（也就是海关商品编码）
	 */
	private String haikwanCode;
	
	/**
	 * 原产国
	 */
	private String originCountry;
	/**
	 * 
	 */
	/**
	 * 吊牌价
	 */
	private String tagPrice ;
	/**
	 * 单价
	 */
	private String unitPrice;
	
	/**
	 * 币制
	 */
	private String currency;
	
	/**
	 * 品牌代码
	 */
	private String brandCode;
	
	
	/**
	 * 品牌名称
	 */
	private String brandName;
	
	public Integer getWeight() {
		return weight;
	}

	public void setWeight(Integer weight) {
		this.weight = weight;
	}

	public Integer getWeightPkg() {
		return weightPkg;
	}

	public void setWeightPkg(Integer weightPkg) {
		this.weightPkg = weightPkg;
	}

	public String getSpec() {
		return spec;
	}

	public void setSpec(String spec) {
		this.spec = spec;
	}

	
	@Column(name="sku_name")
	public String getSkuName() {
		return skuName;
	}

	public void setSkuName(String skuName) {
		this.skuName = skuName;
	}

	
	
	@Column(name="store_type")
	public String getStoreType() {
		return storeType;
	}

	public void setStoreType(String storeType) {
		this.storeType = storeType;
	}

	@Column(name="store_id")
	public String getStoreId() {
		return storeId;
	}

	public void setStoreId(String storeId) {
		this.storeId = storeId;
	}
	@Column(name="store_code")
	public String getStoreCode() {
		return storeCode;
	}

	public void setStoreCode(String storeCode) {
		this.storeCode = storeCode;
	}

	@Column(name="customer_code")
	public String getCustomerCode() {
		return customerCode;
	}
	public void setCustomerCode(String customerCode) {
		this.customerCode = customerCode;
	}
	
	@Column(name="sku_id")
	public String getSku() {
		return sku;
	}
	public void setSku(String sku) {
		this.sku = sku;
	}
	@Column(name="sku_bar")
	public String getBar() {
		return bar;
	}
	public void setBar(String bar) {
		this.bar = bar;
	}
	@Column(name="sku_des")
	public String getDes() {
		return des;
	}
	public void setDes(String des) {
		this.des = des;
	}
	@Column(name="sku_unt")
	public String getUnt() {
		return unt;
	}
	public void setUnt(String unt) {
		this.unt = unt;
	}
	@Column(name="sku_col")
	public String getCol() {
		return col;
	}
	public void setCol(String col) {
		this.col = col;
	}
	@Column(name="sku_siz")
	public String getSiz() {
		return siz;
	}
	public void setSiz(String siz) {
		this.siz = siz;
	}
	@Column(name="sku_len")
	public String getLen() {
		return len;
	}
	public void setLen(String len) {
		this.len = len;
	}
	@Column(name="sku_wid")
	public String getWid() {
		return wid;
	}
	public void setWid(String wid) {
		this.wid = wid;
	}
	@Column(name="sku_hei")
	public String getHei() {
		return hei;
	}
	public void setHei(String hei) {
		this.hei = hei;
	}
	@Column(name="sku_vol")
	public String getVol() {
		return vol;
	}
	public void setVol(String vol) {
		this.vol = vol;
	}
	@Column(name="sku_nwt")
	public String getNwt() {
		return nwt;
	}
	public void setNwt(String nwt) {
		this.nwt = nwt;
	}
	@Column(name="sku_gwt")
	public String getGwt() {
		return gwt;
	}
	public void setGwt(String gwt) {
		this.gwt = gwt;
	}
	@Column(name="sku_mem")
	public String getMem() {
		return mem;
	}
	public void setMem(String mem) {
		this.mem = mem;
	}
	
	@Column(name="tb_skuid")
	public String getTbSkuid() {
		return tbSkuid;
	}
	public void setTbSkuid(String tbSkuid) {
		this.tbSkuid = tbSkuid;
	}
	@Column(name="sku_props")
	public String getSkuProps() {
		return skuProps;
	}
	public void setSkuProps(String skuProps) {
		this.skuProps = skuProps;
	}
	
	private Customers customer;

	@Transient
	public Customers getCustomer() {
		return customer;
	}

	public void setCustomer(Customers customer) {
		this.customer = customer;
	}

	public String getSellFlg() {
		return sellFlg;
	}

	public void setSellFlg(String sellFlg) {
		this.sellFlg = sellFlg;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public String getWeightPop() {
		return weightPop;
	}

	public void setWeightPop(String weightPop) {
		this.weightPop = weightPop;
	}

	public String getIsShelfLifeMgmt() {
		return isShelfLifeMgmt;
	}

	public void setIsShelfLifeMgmt(String isShelfLifeMgmt) {
		this.isShelfLifeMgmt = isShelfLifeMgmt;
	}

	public Integer getShelfLife() {
		return shelfLife;
	}

	public void setShelfLife(Integer shelfLife) {
		this.shelfLife = shelfLife;
	}

	public String getIsBatchMgmt() {
		return isBatchMgmt;
	}

	public void setIsBatchMgmt(String isBatchMgmt) {
		this.isBatchMgmt = isBatchMgmt;
	}

	public String getIsFragile() {
		return isFragile;
	}

	public void setIsFragile(String isFragile) {
		this.isFragile = isFragile;
	}

	public String getIsHazardous() {
		return isHazardous;
	}

	public void setIsHazardous(String isHazardous) {
		this.isHazardous = isHazardous;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getIsValid() {
		return isValid;
	}

	public void setIsValid(String isValid) {
		this.isValid = isValid;
	}

	public Integer getSafetyStock() {
		return safetyStock;
	}

	public void setSafetyStock(Integer safetyStock) {
		this.safetyStock = safetyStock;
	}

	public Integer getRejectLifecycle() {
		return rejectLifecycle;
	}

	public void setRejectLifecycle(Integer rejectLifecycle) {
		this.rejectLifecycle = rejectLifecycle;
	}

	public Integer getLockupLifecycle() {
		return lockupLifecycle;
	}

	public void setLockupLifecycle(Integer lockupLifecycle) {
		this.lockupLifecycle = lockupLifecycle;
	}

	public Integer getAdventLifecycle() {
		return adventLifecycle;
	}

	public void setAdventLifecycle(Integer adventLifecycle) {
		this.adventLifecycle = adventLifecycle;
	}

	public String getItemType() {
		return itemType;
	}

	public void setItemType(String itemType) {
		this.itemType = itemType;
	}

	public String getHaikwanCode() {
		return haikwanCode;
	}

	public void setHaikwanCode(String haikwanCode) {
		this.haikwanCode = haikwanCode;
	}

	public String getOriginCountry() {
		return originCountry;
	}

	public void setOriginCountry(String originCountry) {
		this.originCountry = originCountry;
	}
	
	public String getTagPrice() {
		return tagPrice;
	}

	public void setTagPrice(String tagPrice) {
		this.tagPrice = tagPrice;
	}

	public String getUnitPrice() {
		return unitPrice;
	}

	public void setUnitPrice(String unitPrice) {
		this.unitPrice = unitPrice;
	}

	public String getCurrency() {
		return currency;
	}

	public void setCurrency(String currency) {
		this.currency = currency;
	}

	public String getBrandCode() {
		return brandCode;
	}

	public void setBrandCode(String brandCode) {
		this.brandCode = brandCode;
	}

	public String getBrandName() {
		return brandName;
	}

	public void setBrandName(String brandName) {
		this.brandName = brandName;
	}
	
}
